<?php
if(is_category() || is_single()){
    $cateID = get_query_var('cat');
    $cateID_parent = pa_category_top_parent_id($cateID);
    $categories = get_categories('include='.$cateID);
    $top_cat_parent = pa_category_top_parent_id($cateID_parent);
    
    
    if(in_category(5)){
        echo'<p class="title"><strong>ABOUT US</strong></p>';
        wp_nav_menu(array('menu'=>'About us','menu_class'=>'nav'));
    }elseif(get_query_var('cat') == 12){
        echo'<p class="title"><strong>GOLF LISTING</strong></p>';
        wp_nav_menu(array('menu'=>'Golf Listing','menu_class'=>'nav'));
    }elseif($cateID == 13 || $categories[0]->category_parent == 13 ||(is_single() && in_category(13))) {
        echo'<p class="title"><strong>SOUTHEAST ASIA</strong></p>';
        wp_nav_menu(array('menu'=>'Southeast Asia','menu_class'=>'nav'));
        if($cateID != 13 ) echo do_shortcode('[sbc]');
    }elseif($cateID == 19 || $categories[0]->category_parent == 19 ||(is_single() && in_category(19))){
        echo'<p class="title"><strong>AUSTRALIA</strong></p>';
        wp_nav_menu(array('menu'=>'Australia','menu_class'=>'nav'));
    }elseif(isset($_GET['s'])){
        echo'<p class="title"><strong>SEARCH</strong></p>';
    }elseif($cateID == 14 || $categories[0]->category_parent == 14 ||(is_single() && in_category(14))){
        echo'<p class="title"><strong>ASIA PACIFIC</strong></p>';
        wp_nav_menu(array('menu'=>'Asia Pacific','menu_class'=>'nav'));
        if($cateID != 14 ) echo do_shortcode('[sbc]');
    }elseif($cateID == 16 || $categories[0]->category_parent == 16 ||(is_single() && in_category(16))){
        echo'<p class="title"><strong>MIDDLE EAST</strong></p>';
        wp_nav_menu(array('menu'=>'Middle East','menu_class'=>'nav'));
        if($cateID != 16 ) echo do_shortcode('[sbc]');
    }elseif($cateID == 17 || $categories[0]->category_parent == 17 ||(is_single() && in_category(17))){
        echo'<p class="title"><strong>SOUTH ASIA</strong></p>';
        wp_nav_menu(array('menu'=>'South Asia','menu_class'=>'nav'));
        if($cateID != 17 ) echo do_shortcode('[sbc]');
    }
    
}elseif(is_page()){
        echo'<p class="title"><strong>'.get_the_title($post->ID).'</strong></p>';
}
?>
